Tables [dbo].[ComponentRegistryCategory]
Properties
PropertyValue
Row Count252
Created10:31:17 AM Tuesday, March 02, 2010
Last Modified11:40:01 AM Monday, February 20, 2012
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK_ComponentRegistryCategory: ComponentKey\ComponentCategoryKeyForeign Keys FK_ComponentRegistryCategory_ComponentRegistry: [dbo].[ComponentRegistry].ComponentKeyComponentKeyuniqueidentifier16
No
(newid())
Cluster Primary Key PK_ComponentRegistryCategory: ComponentKey\ComponentCategoryKeyForeign Keys FK_ComponentRegistryCategory_ComponentCategoryRef: [dbo].[ComponentCategoryRef].ComponentCategoryKeyComponentCategoryKeyuniqueidentifier16
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_ComponentRegistryCategory: ComponentKey\ComponentCategoryKeyPK_ComponentRegistryCategoryComponentKey, ComponentCategoryKey
Yes
Foreign Keys Foreign Keys
NameColumns
FK_ComponentRegistryCategory_ComponentCategoryRefComponentCategoryKey->[dbo].[ComponentCategoryRef].[ComponentCategoryKey]
FK_ComponentRegistryCategory_ComponentRegistryComponentKey->[dbo].[ComponentRegistry].[ComponentKey]
SQL Script
CREATE TABLE [dbo].[ComponentRegistryCategory]
(
[ComponentKey] [uniqueidentifier] NOT NULL CONSTRAINT [DF_ComponentRegistryCategory_ComponentKey] DEFAULT (newid()),
[ComponentCategoryKey] [uniqueidentifier] NOT NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[ComponentRegistryCategory] ADD CONSTRAINT [PK_ComponentRegistryCategory] PRIMARY KEY CLUSTERED ([ComponentKey], [ComponentCategoryKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ComponentRegistryCategory] ADD CONSTRAINT [FK_ComponentRegistryCategory_ComponentCategoryRef] FOREIGN KEY ([ComponentCategoryKey]) REFERENCES [dbo].[ComponentCategoryRef] ([ComponentCategoryKey])
GO
ALTER TABLE [dbo].[ComponentRegistryCategory] ADD CONSTRAINT [FK_ComponentRegistryCategory_ComponentRegistry] FOREIGN KEY ([ComponentKey]) REFERENCES [dbo].[ComponentRegistry] ([ComponentKey])
GO
Uses